// The API isBadVersion is defined for you.
// isBadVersion(version:i32)-> bool;
// to call it use self.isBadVersion(version)

pub struct  Solution;

impl Solution {
    // pub fn first_bad_version(&self, n: i32) -> i32 {
    //     for i in 1..=n {
    //         if self.isBadVersion(n) {
    //             return i;
    //         }
    //     }
    //     return 0;
    // }
}